﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using BBServer20210601.Pages;


namespace LayuiDemo.demo.ViewModels.FooVMs
{
    public partial class FooTemplateVM : BaseTemplateVM
    {
        [Display(Name = "年龄")]
        public ExcelPropety Age_Excel = ExcelPropety.CreateProperty<Foo>(x => x.Age);
        [Display(Name = "部门")]
        public ExcelPropety DepartType_Excel = ExcelPropety.CreateProperty<Foo>(x => x.DepartType);
        [Display(Name = "可用?")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Foo>(x => x.IsValid);
        [Display(Name = "姓名")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<Foo>(x => x.Name);
        [Display(Name = "备注")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<Foo>(x => x.Remark);

	    protected override void InitVM()
        {
        }

    }

    public class FooImportVM : BaseImportVM<FooTemplateVM, Foo>
    {

    }

}
